<template>
	<view class="common-bg-color">
		<data-head-view />
		<view class="yy-box">
			<view class="menus">
				<view class="menu" @click="toUnit">
					<image src="/static/to_phone.png" mode="" class="img"></image>
					<view class="">
						单位信息
					</view>
				</view>
				<view class="menu" @click="toXunjianList">
					<image src="/static/to_phone.png" mode="" class="img"></image>
					<view class="">
						日常巡检
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	import DataHeadView from "@/pages/data/components/data_head_view.vue";
	import XRouterConfig from "@/api/XRouterConfig";
	export default {
		name: 'home-home',
		components: {
			DataHeadView
		},
		data() {
			return {
				statusBarHeight: 0
			};
		},
		onLoad() {

		},
		onShow() {

		},
		onHide() {

		},
		methods: {
			toUnit() {
				XRouterConfig.goTo('unit_view')
			},
			toXunjianList() {
				XRouterConfig.goTo('xunjian_list')
			}
		}
	}
	//pages/unit/unit_view.vue
</script>

<style lang="scss" scoped>
	.yy-box {
		background-color: #fff;
		position: relative;
		top: 400rpx;
		width: 90%;
		left: 50%;
		transform: translateX(-50%);
		padding: 20rpx;
	}

	.menus {
		display: flex;

		.menu {
			display: flex;
			flex-direction: column;
			align-items: center;
			font-size: 24rpx;
			margin-right: 20rpx;
		}
	}

	.img {
		width: 100rpx;
		height: 100rpx;
	}
</style>